package com.weixing.mall.provider.api.fallback;

import com.weixing.mall.base.wrapper.Result;
import com.weixing.mall.base.wrapper.ResultUtil;
import com.weixing.mall.provider.api.model.vo.ItemVo;
import com.weixing.mall.provider.api.service.CartFeign;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author: kfc
 * @Description: <br/>
 * Date:Create in 2019/10/9 15:50
 * @Modified By:
 */
@Component
public class CartFeignFallback implements CartFeign {
    @Override
    public Result<List<ItemVo>> loadSelectedItem(long goodsId) {
        return ResultUtil.error("购物车服务暂时不可用");
    }

    @Override
    public Result removeItemFromCart(List<Long> cartItemIds) {
        return ResultUtil.error("服务暂时不可用");
    }
}
